package com.martin.dms.factories;

import java.util.Date;

import com.martin.dms.model.Client;
import com.martin.dms.model.Item;
import com.martin.dms.model.Purchase;

/**
 * Factory service for the Purchase entity object.
 * 
 * @author mtsvetkov
 */
public interface PurchaseFactory {

    /**
     * Creates a new Purchase object.
     * 
     * @param client - the client that makes the purchase.
     * @param item - the purchased item.
     * @param amount - the amount of purchased items.
     * @param date - the date of the purchase.
     * @return the new Purchase.
     */
    public Purchase create(Client client, Item item, int amount, Date date);
}
